<?php
class ModulePaymentConst
{
    const MODULE_NAME = 'module_payment';

    const ORM_NAME_PAYMENT = 'ModulePayment';
    const ORM_NAME_PAYMENT_ORDER = 'ModulePaymentOrder';

    const CONFIG_PAYMENT = 'module_payment/module_payment';

    // payment status
    const STATUS_INITIALIZED      = 0; // payment ordered
    const STATUS_PAYED            = 1; // payment was payed by player
    const STATUS_COMPLETED        = 2; // order goods fulfilled by server, and payment ended

    // payment type
    const PAYMENT_TYPE_TOKEN       = 0; // game token
    const PAYMENT_TYPE_MONEY       = 1; // real money
    const PAYMENT_TYPE_PACK        = 2; // item package

    const PAYMENT_TYPE_FIRST_PAY_TOKEN  = 10; // first pay token
    const PAYMENT_TYPE_FIRST_PAY_MONEY  = 11; // first pay money

    const SINGLE_COMMODITY_VALUE_OF_PAY = 1000000; // 一个外部货币对应的价值

    // platform list
    const PFFB       = 'facebook';
    const PFSA       = 'sina';
    const PFVK       = 'vk';
    const PFOGZ      = 'ogz';
    const PFAG       = 'armorgame';
    const PFNO       = 'no_platform_specified';
    const PFSZ       = 'shinezone';
}